package com.wumz.spring.write.v2.framework.webmvc;

import java.util.Map;

/**
 * Created by wumz on 2020/9/29 11:44
 */
public class MyModelAndView {

    private String viewName;
    private Map<String,?> model;

    public MyModelAndView(String viewName, Map<String, ?> model) {
        this.viewName = viewName;
        this.model = model;
    }

    public MyModelAndView(String viewName) {
        this.viewName = viewName;
    }

    public String getViewName() {
        return viewName;
    }

    public Map<String, ?> getModel() {
        return model;
    }
}
